package com.cskaoyan.service;

import com.cskaoyan.bean.basebean.BaseParam;
import com.cskaoyan.bean.basebean.BasePageData;
import com.cskaoyan.bean.Coupon;
import com.cskaoyan.exception.CouponException;

/**
 * @author lxy
 * @create 2021-10-18 20:45
 */
public interface CouponService {
    BasePageData query(String name, Short type, Short status, BaseParam baseParam);

    void deleteCoupon(Coupon coupon) throws CouponException;

    void createCoupon(Coupon coupon) throws CouponException;

    void updateCoupon(Coupon coupon) throws CouponException;

    Coupon readCoupon(Integer id);

    void deleteCouponById(int couponId);
}
